package com.qf.web;

import com.qf.bean.Users;
import com.qf.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * IntelliJ IDEA -> springboot120622
 * 2019/12/6 23:03
 *
 * @author zmyao
 * 别看，我是渣渣。
 */
@RestController
public class UserController  {
    @Autowired
    private UserService userService;

    @RequestMapping("/findusers")
    public List<Users> findUsers(){
        System.out.println("111111111111111111");
        return   userService.findAll() ;
    }
}
